package com.rxt.thermopro.viewmodel

import androidx.lifecycle.MutableLiveData
import com.app.common.viewmodel.BaseViewModel
import com.rxt.thermopro.R
import com.rxt.thermopro.adapter.ContactListAdapter
import com.rxt.thermopro.bean.ContactBean

class ContactViewModel : BaseViewModel() {

    val contactListData: MutableLiveData<MutableList<ContactBean>> = MutableLiveData()

    fun initData() {
        val list = mutableListOf<ContactBean>()
        list.add(
            ContactBean(
                "service@buythermopro.com", "",
                ContactListAdapter.VIEW_TYPE_HEADER_EMAIL, R.mipmap.icon2
            )
        )
        list.add(
            ContactBean(
                "Telephone:", "",
                ContactListAdapter.VIEW_TYPE_HEADER_PHONE, R.mipmap.icon1
            )
        )
        list.add(
            ContactBean(
                "US: +1 877 515 7797", "Mon-Fri 8:00 AM -8:00 PM(EST)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon6
            )
        )
        list.add(
            ContactBean(
                "CA: +1 877 515 7797", "Mon-Fri 8:00 AM -8:00 PM(EST)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon5
            )
        )
        list.add(
            ContactBean(
                "UK: +44 20 3769 1321", "Mon-Fri 12:00 PM -10:00 PM(GTM)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon9
            )
        )
        list.add(
            ContactBean(
                "German: +49 2115469003", "Mon-Fri 1:00 PM -11:00 PM(CET)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon3
            )
        )
        list.add(
            ContactBean(
                "France: +33 975129576", "Mon-Fri 1:00 PM -11:00 PM(CET)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon4
            )
        )
        list.add(
            ContactBean(
                "Italy: +39 05231715570", "Mon-Fri 1:00 PM -11:00 PM(CET)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon8
            )
        )
        list.add(
            ContactBean(
                "Spain: +34 910601787", "Mon-Fri 1:00 PM -11:00 PM(CET)",
                ContactListAdapter.VIEW_TYPE_VIEW, R.mipmap.icon7
            )
        )
        contactListData.value = list
    }

}